﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StateDemo
{
    abstract class ILiftState
    {
        /// <summary>
        /// 定义一个上下文角色，也就封装状态的变化引起的功能变化
        /// </summary>
        private Context context;

        public Context Context { get; set; }

        public abstract void Open();
        public abstract void Close();
        public abstract void Run();
        public abstract void Stop();

    }
}
